.class Lcom/nemustech/regina/ElementAppList$1;
.super Landroid/database/DataSetObserver;
.source "ElementAppList.java"


# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
    value = Lcom/nemustech/regina/ElementAppList;
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x0
    name = null
.end annotation


# instance fields
.field final synthetic this$0:Lcom/nemustech/regina/ElementAppList;


# direct methods
.method constructor <init>(Lcom/nemustech/regina/ElementAppList;)V
    .locals 0
    .parameter

    .prologue
    .line 180
    iput-object p1, p0, Lcom/nemustech/regina/ElementAppList$1;->this$0:Lcom/nemustech/regina/ElementAppList;

    invoke-direct {p0}, Landroid/database/DataSetObserver;-><init>()V

    return-void
.end method


# virtual methods
.method public onChanged()V
    .locals 5

    .prologue
    const/4 v4, 0x1

    .line 183
    iget-object v2, p0, Lcom/nemustech/regina/ElementAppList$1;->this$0:Lcom/nemustech/regina/ElementAppList;

    invoke-static {v2}, Lcom/nemustech/regina/ElementAppList;->access$000(Lcom/nemustech/regina/ElementAppList;)Lcom/nemustech/regina/AppListIndicator;

    move-result-object v2

    iget-object v3, p0, Lcom/nemustech/regina/ElementAppList$1;->this$0:Lcom/nemustech/regina/ElementAppList;

    invoke-virtual {v3}, Lcom/nemustech/regina/ElementAppList;->getAppPageCount()I

    move-result v3

    invoke-virtual {v2, v3}, Lcom/nemustech/regina/AppListIndicator;->setIndicatorSize(I)V

    .line 184
    iget-object v2, p0, Lcom/nemustech/regina/ElementAppList$1;->this$0:Lcom/nemustech/regina/ElementAppList;

    invoke-static {v2}, Lcom/nemustech/regina/ElementAppList;->access$100(Lcom/nemustech/regina/ElementAppList;)Lcom/nemustech/regina/AppListProvider;

    move-result-object v2

    invoke-virtual {v2}, Lcom/nemustech/regina/AppListProvider;->loadAppList()V

    .line 185
    iget-object v2, p0, Lcom/nemustech/regina/ElementAppList$1;->this$0:Lcom/nemustech/regina/ElementAppList;

    invoke-virtual {v2}, Lcom/nemustech/regina/ElementAppList;->getAppPageCount()I

    move-result v1

    .line 186
    .local v1, currentPageCount:I
    iget-object v2, p0, Lcom/nemustech/regina/ElementAppList$1;->this$0:Lcom/nemustech/regina/ElementAppList;

    invoke-static {v2}, Lcom/nemustech/regina/ElementAppList;->access$200(Lcom/nemustech/regina/ElementAppList;)Lcom/nemustech/regina/AppListHolder;

    move-result-object v2

    invoke-virtual {v2}, Lcom/nemustech/regina/AppListHolder;->getHeadItemIndex()I

    move-result v0

    .line 188
    .local v0, currentIndex:I
    iget-object v2, p0, Lcom/nemustech/regina/ElementAppList$1;->this$0:Lcom/nemustech/regina/ElementAppList;

    invoke-static {v2}, Lcom/nemustech/regina/ElementAppList;->access$200(Lcom/nemustech/regina/ElementAppList;)Lcom/nemustech/regina/AppListHolder;

    move-result-object v2

    invoke-virtual {v2}, Lcom/nemustech/regina/AppListHolder;->refreshHolder()V

    .line 190
    sub-int v2, v1, v4

    if-lt v0, v2, :cond_0

    .line 191
    iget-object v2, p0, Lcom/nemustech/regina/ElementAppList$1;->this$0:Lcom/nemustech/regina/ElementAppList;

    invoke-static {v2}, Lcom/nemustech/regina/ElementAppList;->access$200(Lcom/nemustech/regina/ElementAppList;)Lcom/nemustech/regina/AppListHolder;

    move-result-object v2

    sub-int v3, v1, v4

    const/4 v4, 0x0

    invoke-virtual {v2, v3, v4}, Lcom/nemustech/regina/AppListHolder;->setHeadItemIndex(IZ)V

    .line 207
    :cond_0
    return-void
.end method
